package com.yzs.exam.event;

import com.yzs.exam.entity.User;
import org.springframework.context.ApplicationEvent;

/**
 * 定义一个event事件类，继承ApplicationEvent
 * @author yzs
 * @create 2021-03-17 15:40
 */
public class OnRegistrationCompleteEvent extends ApplicationEvent {

    private final User user ;

    public OnRegistrationCompleteEvent(final User user) {
        super(user);
        this.user = user;
    }
    public User getUser() {
        return user;
    }
}
